home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / bench / x.txt / 000202_fdc@watsun.cc.columbia.edu_Wed Dec 5 09:26:55 EST 2001.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  44 lines

  1. Article: 13024 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!fdc
  3. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: UUCP lockfile name for SVR4
  6. Date: 5 Dec 2001 00:52:58 GMT
  7. Organization: Columbia University
  8. Lines: 28
  9. Message-ID: <9ujr5a$17p$1@newsmaster.cc.columbia.edu>
  10. NNTP-Posting-Host: watsun.cc.columbia.edu
  11. X-Trace: newsmaster.cc.columbia.edu 1007513578 1273 128.59.39.2 (5 Dec 2001 00:52:58 GMT)
  12. X-Complaints-To: postmaster@columbia.edu
  13. NNTP-Posting-Date: 5 Dec 2001 00:52:58 GMT
  14. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13024
  15.  
  16.  
  17. System V R4 creates UUCP lockfile names that are based on the device
  18. number rather than the device name, to sidestep issues about multiple
  19. names for the same device, symlinks, etc.  The code in Kermit is:
  20.  
  21.     stat(ttdev,&devbuf);
  22.     ...
  23.     sprintf(lockfil,"LK.%03d.%03d.%03d", /* safe */
  24.         major(devbuf.st_dev),    /* inode */
  25.         major(devbuf.st_rdev),    /* major device number */
  26.         minor(devbuf.st_rdev));    /* minor device number */
  27.  
  28. Unfortunately I don't recall where this code came from, but it dates
  29. from before C-Kermit 5A was released.  As you can see, one of the lines
  30. has a comment that does not agree with the code:
  31.  
  32.         major(devbuf.st_dev),    /* inode */
  33.  
  34. Is the code wrong, or the comment?  I suspect it's the comment but
  35. unfortunately, I can't seem to locate a definitive reference for the SVR4
  36. lockfile name format (for example, it is not discussed in SVID), nor sample
  37. "official" SVR4 code (e.g. from cu or uucp).  Can anybody supply these?
  38. And/or verify that Kermit properly interlocks with cu on (say) Solaris or
  39. SINIX?
  40.  
  41. Thanks!
  42.  
  43. - Frank
  44.